//
//  Label+Extension.swift
//  新浪微博
//
//  Created by mac on 16/5/24.
//  Copyright © 2016年 mac.com. All rights reserved.
//

import UIKit
extension UILabel {
    convenience init(title:String,font:CGFloat,textColor:UIColor,alignment:NSTextAlignment = .Center){
    self.init()
        self.text = title
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(font)
        textAlignment = alignment
        if alignment == .Left{
        preferredMaxLayoutWidth = ScreenWidth - 2 * StatusCellMargin
                }
        numberOfLines = 0
        sizeToFit()
    
    }
    
    
}
